<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="<%=path %>/static/css/css.css?1" />
<link rel="stylesheet" type="text/css" href="<%=path %>/static/jquery-ui/jquery-ui.min.css" />
<script type="text/javascript" src="<%=path %>/static/js/json2.js"></script>
<script type="text/javascript" src="<%=path %>/static/js/jquery.js"></script>
<script type="text/javascript" src="<%=path %>/static/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="<%=path %>/static/layer/layer.js"></script>
<script type="text/javascript" src="<%=path %>/static/utf8-jsp/ueditor.config.js"></script>
<script type="text/javascript" src="<%=path %>/static/utf8-jsp/ueditor.all.js"></script>
<script type="text/javascript" src="<%=path %>/static/js/gridview.js?v=1"></script>
<script type="text/javascript" src="<%=path %>/static/js/formview.js?v=1"></script>
<script type="text/javascript" src="<%=path %>/static/js/tool.js"></script>
<script type="text/javascript" src="<%=path %>/static/js/validate.js"></script>

<SCRIPT type="text/javascript">
    <!--
    genDicJs(['006','007','008']);
    var formSetting = {
    		po:'QhSysPar',
    		title:"基础参数编辑",
    		formid:"formedit",
    		hiddens:["id","cashRule","memberRule","raiderEntrance","moneyRaider","moneyRule","comProblem","aboutUs","regProtocol"],
    	fields:[
    	     [
				{tdwidth:210,title:"提现额度",type:"text",name:"reflect",width:150}
    		 ],
             [
                {title:"广告间隔时间",type:"text",name:"intervals",width:150}
             ],
    		 [
    		    {title:"QQ1",type:"text",name:"qqSer1",width:150}
    		 ],
    		 [
                {title:"QQ2",type:"text",name:"qqSer2",width:150}
             ],
             [
                {title:"QQ3",type:"text",name:"qqSer3",width:150}
             ],
             [
                {title:"QQ4",type:"text",name:"qqSer4",width:150}
             ],
             [
                {title:"QQ群",type:"text",name:"qqG",width:150}
             ],
             [
                {title:"QQKey",type:"text",name:"qqKey",width:150}
             ],
             [
                {title:"分享收益",type:"text",name:"shareProfit",width:150}
             ],
             [
                {title:"阅读收益",type:"text",name:"readProfit",width:150}
             ],
             [
                {title:"预期收益",type:"text",name:"expectProfit",width:150}
             ],
             [
                {title:"首次注册金额",type:"text",name:"firstReg",width:150}
             ],
             [
                {title:"完成几条分享",type:"text",name:"shareCnt",width:150}
             ],
             [
                {title:"分享一条几元",type:"text",name:"shareCash",width:150}
             ],
             [
                {title:"分享页面点几次即为有效分享",type:"text",name:"shareClick",width:150}
             ],
             [
                {title:"邀请好友获得几元奖励",type:"text",name:"inviteCash",width:150}
             ],
             [
                {title:"徒弟若几天未活跃则停止获取佣金",type:"text",name:"studentCnt",width:150}
             ],
             [
                {title:"任务大厅仅显示每日可分享几条",type:"text",name:"taskShareCnt",width:150}
             ],
             [
                {title:"邀请页新闻",type:"text",name:"inviteNews",width:150}
             ],
             [
                {title:"提现规则",type:"div",name:"editCashRule",width:800}
             ],
             [
                {title:"会员规则",type:"div",name:"editMemberRule",width:800}
             ],
             [
                {title:"攻略入口",type:"div",name:"editRaiderEntrance",width:800}
             ],
             [
                {title:"赚钱攻略",type:"div",name:"editMoneyRaider",width:800}
             ],
             [
                {title:"赚钱规则",type:"div",name:"editMoneyRule",width:800}
             ],
             [
                {title:"常见问题",type:"div",name:"editComProblem",width:800}
             ],
             [
                {title:"关于钱狐",type:"div",name:"editAboutUs",width:800}
             ],
             [
                {title:"注册协议",type:"div",name:"editRegProtocol",width:800}
             ]
             ],
		toolbar:{align:'right',buttons:[
		                 			  {
		                 			    	 id:'save',
		                 			    	 title:'保存',
		                 			    	 handlers:{
		                 			    		 click: function(){
		                 			    			 if(!Validator.Validate(document.getElementById('formedit'),0)){
		                 			    			    return;
		                 			    			 }
		                 			    			 form.save(function(ret) {
		                 			    				if (ret == -1) {
		                 			    					layer.alert("数据保存失败，请重试！");
		                 			    				} else {
		                 			    					layer.msg("数据已保存！");

		                 			    				}

		                 			    			});
		                 			    		 }
		                 			    	 }
		                 			     }
		                 			 ]}
    }

	var form;
    $(document).ready(function(){
    	form = new FormView("formview",formSetting);
    	form.init();

    	var id='<%=request.getParameter("id")%>';
    	if(id!=null&&id!=""){
    	   form.loadData(id, "QhSysPar");
    	}

		ajustHeight();
    });

    var $$ = function(func){
        if (document.addEventListener) {
            window.addEventListener("load", func, false);
        }
        else if (document.attachEvent) {
            window.attachEvent("onload", func);
        }
    }
    $$(function(){


    });
    //-->
</SCRIPT>
</head>

<body>
<div id="formview0" class="rbox1"></div>
<div id="formview" class="rbox1"></div>
<div id="list" class="rbox2"></div>

<script type="text/javascript" src="<%=path %>/static/js/underscore.js"></script>
<script type='text/javascript' src='<%=path %>/static/My97DatePicker/WdatePicker.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/interface/BaseDwr.js'></script>
</body>
</html>